import request from '@/utils/request'

// data: {mobile, password}
export const login = (data) => request.post('/sys/login', data)

// 获取用户个人信息
export const getProfile = () => request.get('/sys/profile')

// 修改密码
// { oldPassword, newPassword }
export const updatePassword = (data) => request.put('/sys/user/updatePass', data)

